package com.example.houduan.Pojo;

import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class Account {
    private int id;
    private String realname;
    private String uname;
    private String pwd;
    private String phonenumber;
    private String utype;
    private Date updatetime;
    private Date createtime;

    public Account() {
    }

    public Account(int id, String realname, String uname, String pwd, String phonenumber, String utype, Date updatetime, Date createtime) {
        this.id = id;
        this.realname = realname;
        this.uname = uname;
        this.pwd = pwd;
        this.phonenumber = phonenumber;
        this.utype = utype;
        this.updatetime = updatetime;
        this.createtime = createtime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getUtype() {
        return utype;
    }

    public void setUtype(String utype) {
        this.utype = utype;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", realname='" + realname + '\'' +
                ", uname='" + uname + '\'' +
                ", pwd='" + pwd + '\'' +
                ", phonenumber='" + phonenumber + '\'' +
                ", utype='" + utype + '\'' +
                ", updatetime=" + updatetime +
                ", createtime=" + createtime +
                '}';
    }
}
